package com.basker.ttl;

import org.springframework.util.Assert;

import com.alibaba.ttl.TransmittableThreadLocal;

public class NamedTransmittableThreadLocal<T> extends TransmittableThreadLocal<T> {
    private final String name;

    public NamedTransmittableThreadLocal(String name) {
        Assert.hasText(name, "parameter 'name' is requiredchi");
        this.name = name;
    }

    @Override
    public String toString() {
        return this.name;
    }
}
